[WIP] support for customizing LoRA weights through the sdapi#1982
[WIP] support for customizing LoRA weights through the sdapi#1982wbruna wants to merge 1 commit intoLostRuins:concedo_experimentalfrom
Conversation
|
Does it have any implications on memory use or runtime file loading? |
|
For For |
|
Personally I have seen this request a few times. There is demand for it. If its a bit slower during a switch that is better than not having it at all. Just make sure nothing changes if its not used. |
first working prototype
b0735b5 to
1ddd1a8
Compare
|
Got a first somewhat-working version. I've included code for the As suspected,
What do you think? |
|
By the way, it's also possible to support the |
This is still just an idea!
Since we just got support for multiple LoRAs, we could include LoRA customization on the API side, by:
/sdapi/v1/loraslorafileld at/sdapi/v1/txt2imgand/sdapi/v1/img2imgI recently implemented support on my Python client script for the mainline sd-server implementation, so I have a reasonable idea about how complicated that would be. I'm also aware that the sd.cpp C API would have to be adapted to allow changing LoRA weights without reloading the models.
Do you think this would be worth implementing?